package com.ch.android.networklib

import com.ch.android.networklib.data.BaseResultData

/**
 * Author: conghao
 * Date: 2024/1/3 9:48
 * Description: MyException
 */
class ApiException(message: String, status: Int = 0 ) : Exception(message) {
    val status: Int

    init {
        this.status = status
    }
    constructor(baseResultData: BaseResultData<*>) : this(baseResultData.message, baseResultData.status.toInt())
}